<?php

// Init owncloud

require_once(OC_App::getAppPath('company') . "/lib/subaccounts.php");

if(!OC_User::isLoggedIn()) {
   echo '您需要先登录';
   exit;
}

OCP\JSON::callCheck();

$model = new PCompanyModelSubAccounts();
$users = $model->getUsers();

$tmpl = new OCP\Template('company', 'part.subaccounts.list', '');
$tmpl->assign('users', $users);
$tmpl->printPage();